package com.rlf.sf.legacymapping.xml.object;

import java.util.ArrayList;
import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

@XStreamAlias("section")
public class Section {
	
	@XStreamAsAttribute
	@XStreamAlias("message-key")
	private String messageKey;
	
	@XStreamImplicit(itemFieldName = "legacy-category")
	private List<LegacyCategory> categories = new ArrayList<>();

	public String getMessageKey() {
		return messageKey;
	}

	public void setMessageKey(String messageKey) {
		this.messageKey = messageKey;
	}

	public List<LegacyCategory> getCategories() {
		return categories;
	}

	public void setCategories(List<LegacyCategory> categories) {
		this.categories = categories;
	}
	
}
